package com.ms.p2p.provider.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.ms.p2p.entity.system.Dictionary;
import com.ms.p2p.provider.DictionaryProvider;
import com.ms.p2p.service.impl.DictionaryServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * Created by daimajia on 2015/4/19 添加dubbo接口.
 */
@Service
public class DictionaryProviderImpl implements DictionaryProvider {
    @Autowired
    DictionaryServiceImpl dictionaryService;

    public Dictionary get(int id) {
        return dictionaryService.get(id);
    }

    public List<Dictionary> getdictListByTypeId(String type) {
        return dictionaryService.getdictListByTypeId(type);
    }

    public String getDictValue(String type, String dict_value) {
        return dictionaryService.getDictValue(type,dict_value);
    }
}
